package cn.edu.zjgsu.ito.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.edu.zjgsu.ito.util.Paginator;

public class ComplainViewExample extends Paginator{
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ComplainViewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdIsNull() {
            addCriterion("complain_user_id is null");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdIsNotNull() {
            addCriterion("complain_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdEqualTo(Integer value) {
            addCriterion("complain_user_id =", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdNotEqualTo(Integer value) {
            addCriterion("complain_user_id <>", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdGreaterThan(Integer value) {
            addCriterion("complain_user_id >", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("complain_user_id >=", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdLessThan(Integer value) {
            addCriterion("complain_user_id <", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("complain_user_id <=", value, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdIn(List<Integer> values) {
            addCriterion("complain_user_id in", values, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdNotIn(List<Integer> values) {
            addCriterion("complain_user_id not in", values, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdBetween(Integer value1, Integer value2) {
            addCriterion("complain_user_id between", value1, value2, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andComplainUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("complain_user_id not between", value1, value2, "complainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdIsNull() {
            addCriterion("be_complain_user_id is null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdIsNotNull() {
            addCriterion("be_complain_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdEqualTo(Integer value) {
            addCriterion("be_complain_user_id =", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdNotEqualTo(Integer value) {
            addCriterion("be_complain_user_id <>", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdGreaterThan(Integer value) {
            addCriterion("be_complain_user_id >", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("be_complain_user_id >=", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdLessThan(Integer value) {
            addCriterion("be_complain_user_id <", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("be_complain_user_id <=", value, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdIn(List<Integer> values) {
            addCriterion("be_complain_user_id in", values, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdNotIn(List<Integer> values) {
            addCriterion("be_complain_user_id not in", values, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdBetween(Integer value1, Integer value2) {
            addCriterion("be_complain_user_id between", value1, value2, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("be_complain_user_id not between", value1, value2, "beComplainUserId");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlIsNull() {
            addCriterion("head_portrait_url is null");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlIsNotNull() {
            addCriterion("head_portrait_url is not null");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlEqualTo(String value) {
            addCriterion("head_portrait_url =", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlNotEqualTo(String value) {
            addCriterion("head_portrait_url <>", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlGreaterThan(String value) {
            addCriterion("head_portrait_url >", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlGreaterThanOrEqualTo(String value) {
            addCriterion("head_portrait_url >=", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlLessThan(String value) {
            addCriterion("head_portrait_url <", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlLessThanOrEqualTo(String value) {
            addCriterion("head_portrait_url <=", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlLike(String value) {
            addCriterion("head_portrait_url like", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlNotLike(String value) {
            addCriterion("head_portrait_url not like", value, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlIn(List<String> values) {
            addCriterion("head_portrait_url in", values, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlNotIn(List<String> values) {
            addCriterion("head_portrait_url not in", values, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlBetween(String value1, String value2) {
            addCriterion("head_portrait_url between", value1, value2, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andHeadPortraitUrlNotBetween(String value1, String value2) {
            addCriterion("head_portrait_url not between", value1, value2, "headPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameIsNull() {
            addCriterion("be_complain_user_nickname is null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameIsNotNull() {
            addCriterion("be_complain_user_nickname is not null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameEqualTo(String value) {
            addCriterion("be_complain_user_nickname =", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameNotEqualTo(String value) {
            addCriterion("be_complain_user_nickname <>", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameGreaterThan(String value) {
            addCriterion("be_complain_user_nickname >", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("be_complain_user_nickname >=", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameLessThan(String value) {
            addCriterion("be_complain_user_nickname <", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameLessThanOrEqualTo(String value) {
            addCriterion("be_complain_user_nickname <=", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameLike(String value) {
            addCriterion("be_complain_user_nickname like", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameNotLike(String value) {
            addCriterion("be_complain_user_nickname not like", value, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameIn(List<String> values) {
            addCriterion("be_complain_user_nickname in", values, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameNotIn(List<String> values) {
            addCriterion("be_complain_user_nickname not in", values, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameBetween(String value1, String value2) {
            addCriterion("be_complain_user_nickname between", value1, value2, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserNicknameNotBetween(String value1, String value2) {
            addCriterion("be_complain_user_nickname not between", value1, value2, "beComplainUserNickname");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlIsNull() {
            addCriterion("be_complain_user_head_portrait_url is null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlIsNotNull() {
            addCriterion("be_complain_user_head_portrait_url is not null");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlEqualTo(String value) {
            addCriterion("be_complain_user_head_portrait_url =", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlNotEqualTo(String value) {
            addCriterion("be_complain_user_head_portrait_url <>", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlGreaterThan(String value) {
            addCriterion("be_complain_user_head_portrait_url >", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlGreaterThanOrEqualTo(String value) {
            addCriterion("be_complain_user_head_portrait_url >=", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlLessThan(String value) {
            addCriterion("be_complain_user_head_portrait_url <", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlLessThanOrEqualTo(String value) {
            addCriterion("be_complain_user_head_portrait_url <=", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlLike(String value) {
            addCriterion("be_complain_user_head_portrait_url like", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlNotLike(String value) {
            addCriterion("be_complain_user_head_portrait_url not like", value, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlIn(List<String> values) {
            addCriterion("be_complain_user_head_portrait_url in", values, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlNotIn(List<String> values) {
            addCriterion("be_complain_user_head_portrait_url not in", values, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlBetween(String value1, String value2) {
            addCriterion("be_complain_user_head_portrait_url between", value1, value2, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andBeComplainUserHeadPortraitUrlNotBetween(String value1, String value2) {
            addCriterion("be_complain_user_head_portrait_url not between", value1, value2, "beComplainUserHeadPortraitUrl");
            return (Criteria) this;
        }

        public Criteria andComplainTimeIsNull() {
            addCriterion("complain_time is null");
            return (Criteria) this;
        }

        public Criteria andComplainTimeIsNotNull() {
            addCriterion("complain_time is not null");
            return (Criteria) this;
        }

        public Criteria andComplainTimeEqualTo(Date value) {
            addCriterion("complain_time =", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeNotEqualTo(Date value) {
            addCriterion("complain_time <>", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeGreaterThan(Date value) {
            addCriterion("complain_time >", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("complain_time >=", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeLessThan(Date value) {
            addCriterion("complain_time <", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeLessThanOrEqualTo(Date value) {
            addCriterion("complain_time <=", value, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeIn(List<Date> values) {
            addCriterion("complain_time in", values, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeNotIn(List<Date> values) {
            addCriterion("complain_time not in", values, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeBetween(Date value1, Date value2) {
            addCriterion("complain_time between", value1, value2, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainTimeNotBetween(Date value1, Date value2) {
            addCriterion("complain_time not between", value1, value2, "complainTime");
            return (Criteria) this;
        }

        public Criteria andComplainContentIsNull() {
            addCriterion("complain_content is null");
            return (Criteria) this;
        }

        public Criteria andComplainContentIsNotNull() {
            addCriterion("complain_content is not null");
            return (Criteria) this;
        }

        public Criteria andComplainContentEqualTo(String value) {
            addCriterion("complain_content =", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentNotEqualTo(String value) {
            addCriterion("complain_content <>", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentGreaterThan(String value) {
            addCriterion("complain_content >", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentGreaterThanOrEqualTo(String value) {
            addCriterion("complain_content >=", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentLessThan(String value) {
            addCriterion("complain_content <", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentLessThanOrEqualTo(String value) {
            addCriterion("complain_content <=", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentLike(String value) {
            addCriterion("complain_content like", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentNotLike(String value) {
            addCriterion("complain_content not like", value, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentIn(List<String> values) {
            addCriterion("complain_content in", values, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentNotIn(List<String> values) {
            addCriterion("complain_content not in", values, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentBetween(String value1, String value2) {
            addCriterion("complain_content between", value1, value2, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainContentNotBetween(String value1, String value2) {
            addCriterion("complain_content not between", value1, value2, "complainContent");
            return (Criteria) this;
        }

        public Criteria andComplainStateIsNull() {
            addCriterion("complain_state is null");
            return (Criteria) this;
        }

        public Criteria andComplainStateIsNotNull() {
            addCriterion("complain_state is not null");
            return (Criteria) this;
        }

        public Criteria andComplainStateEqualTo(Integer value) {
            addCriterion("complain_state =", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateNotEqualTo(Integer value) {
            addCriterion("complain_state <>", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateGreaterThan(Integer value) {
            addCriterion("complain_state >", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("complain_state >=", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateLessThan(Integer value) {
            addCriterion("complain_state <", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateLessThanOrEqualTo(Integer value) {
            addCriterion("complain_state <=", value, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateIn(List<Integer> values) {
            addCriterion("complain_state in", values, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateNotIn(List<Integer> values) {
            addCriterion("complain_state not in", values, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateBetween(Integer value1, Integer value2) {
            addCriterion("complain_state between", value1, value2, "complainState");
            return (Criteria) this;
        }

        public Criteria andComplainStateNotBetween(Integer value1, Integer value2) {
            addCriterion("complain_state not between", value1, value2, "complainState");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNull() {
            addCriterion("username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("username <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("username >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("username >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("username <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("username <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUserStateIsNull() {
            addCriterion("user_state is null");
            return (Criteria) this;
        }

        public Criteria andUserStateIsNotNull() {
            addCriterion("user_state is not null");
            return (Criteria) this;
        }

        public Criteria andUserStateEqualTo(Integer value) {
            addCriterion("user_state =", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateNotEqualTo(Integer value) {
            addCriterion("user_state <>", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateGreaterThan(Integer value) {
            addCriterion("user_state >", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_state >=", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateLessThan(Integer value) {
            addCriterion("user_state <", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateLessThanOrEqualTo(Integer value) {
            addCriterion("user_state <=", value, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateIn(List<Integer> values) {
            addCriterion("user_state in", values, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateNotIn(List<Integer> values) {
            addCriterion("user_state not in", values, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateBetween(Integer value1, Integer value2) {
            addCriterion("user_state between", value1, value2, "userState");
            return (Criteria) this;
        }

        public Criteria andUserStateNotBetween(Integer value1, Integer value2) {
            addCriterion("user_state not between", value1, value2, "userState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}